package io.renren.modules.frt.service.impl;

import org.springframework.stereotype.Service;

import java.util.HashMap;
import java.util.List;
import java.util.Map;
import com.baomidou.mybatisplus.mapper.EntityWrapper;
import com.baomidou.mybatisplus.plugins.Page;
import com.baomidou.mybatisplus.service.impl.ServiceImpl;
import io.renren.common.utils.PageUtils;
import io.renren.common.utils.Query;

import io.renren.modules.frt.dao.MonitorReport1Dao;
import io.renren.modules.frt.entity.MonitorReport1Entity;
import io.renren.modules.frt.service.MonitorReport1Service;


@Service("monitorReport1Service")
public class MonitorReport1ServiceImpl extends ServiceImpl<MonitorReport1Dao, MonitorReport1Entity> implements MonitorReport1Service {

    @Override
    public PageUtils queryPage(Map<String, Object> params) {
        Page<MonitorReport1Entity> page = this.selectPage(
                new Query<MonitorReport1Entity>(params).getPage(),
                new EntityWrapper<MonitorReport1Entity>()
        );

        return new PageUtils(page);
    }

	@Override
	public List<Map<String, Object>> sumaryList(Long taskUserId, Long[] userIds, List<String> list) {
		Map<String, Object> params = new HashMap<>();
    	params.put("taskUserId", taskUserId);
    	params.put("userIds", userIds);
    	params.put("list", list);
    	return baseMapper.sumaryList(params);
	}

}
